import { $get } from '@js/authRequest'

// 获取案由树
export async function getTreeData () {
  const res = await $get('/api/common/cause_action')
  if (res.status !== 1) {
    throw new Error(res.message)
  }
  return res.data
}
